-- GENERATED SPELL FOR [Sunfury Captain] --


function spell0_19453(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(32064,pUnit)
pUnit:RegisterEvent('Sorts_19453', 551, 1)
end

function spell1_19453(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19453', 628, 1)
end

function spell2_19453(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19453', 552, 1)
end

function Sorts_19453(pUnit, Event)
local choix_sorts_19453 = math.random(0, 2)
if choix_sorts_19453 == 0 then
pUnit:RegisterEvent('spell0_19453', 1, 1)
end
if choix_sorts_19453 == 1 then
pUnit:RegisterEvent('spell1_19453', 1, 1)
end
if choix_sorts_19453 == 2 then
pUnit:RegisterEvent('spell2_19453', 1, 1)
end
end

function mob19453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19453', math.random(1500, 3000), 1)
end

function mob19453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19453, 1, 'mob19453_Action')
RegisterUnitEvent(19453, 2, 'mob19453_Leave')
RegisterUnitEvent(19453, 3, 'mob19453_Kill')
RegisterUnitEvent(19453, 4, 'mob19453_Die')
